package com.tianyi.sfzy1.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 私信表
 * @TableName privatemessage
 */
@Data
public class Privatemessage implements Serializable {
    /**
     * 私信编号
     */
    private int messageId;

    /**
     * 私信内容
     */
    private String content;

    /**
     * 会员编号 -- 应该引用Member(member_id)
     */
    private int memberId;

    /**
     * 提问时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date askTime;

    /**
     * 咨询师编号 -- 应该引用Consultant(consultant_id)
     */
    private int consultantId;

    /**
     * 回复内容
     */
    private String replyContent;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date replyTime;

    private static final long serialVersionUID = 1L;

    private Member member;
}